package com.riko.comic.module.comic.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.riko.comic.module.comic.bean.po.ComicComments;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface ComicCommentsMapper extends BaseMapper<ComicComments> {
    @Select("SELECT * FROM comic_comments WHERE comic_id = '${id}' order by comment_time desc")
    List<ComicComments> queryComments(Integer id);
}
